
# class Course:
#
#     def __init__(self,number,name,teacher,location):
#         self.number = number
#         self.name = name
#         self.teacher = teacher
#         self.location = location
#
#     def show_info(self):
#         print(f"课程编号: {self.number}")
#         print(f"课程名称: {self.name}")
#         print(f"任课老师: {self.teacher}")
#         print(f"上课地点: {self.location}")
#
# course = Course(number=1,name="Python开发",teacher="程老师",location="教学3号楼")
# course.show_info()

class Course:

    def __init__(self,number,name,teacher,location):
        self.number = number
        self.name = name
        self.teacher = teacher
        self.__location = location

    def show_info(self):
        print(f"课程编号为: {self.number}")
        print(f"课程名称为: {self.name}")
        print(f"任课老师为: {self.teacher}")
        print(f"上课地点为: {self.__location}")

course = Course(number=1,name="Python开发",teacher="程老师",location="笃行楼")
course.show_info()